import React, { Component } from 'react'
import ReactDOM from 'react-dom/client'
import Demo from './Demo'
import Hello from './Hello'

class App extends Component {
  render() {
    return (
      <div>
        <h1>我是App组件</h1>
        <Demo car='yellow car' money={100}></Demo>
        <Hello car='yellow car' money={100}></Hello>
      </div>
    )
  }
}
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(<App />)
